package com.chushouya.product.dto.admin.attribute;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * SKU属性和属性值组合信息DTO
 */
@Data
@ApiModel(value = "SKU属性和属性值组合信息DTO")
public class AttributeItemCombineDTO {

    @ApiModelProperty(value = "SKU属性ID")
    private Long attrItemId;

    @ApiModelProperty(value = "SKU属性名称")
    private String attrName;

    @ApiModelProperty(value = "SKU属性值列表")
    private List<AttributeValueInfo> attrValueList;

    /**
     * SKU属性值信息
     */
    @Data
    @ApiModel(value = "SKU属性值信息")
    public static class AttributeValueInfo {

        @ApiModelProperty(value = "SKU属性值ID")
        private Long attrValueId;

        @ApiModelProperty(value = "SKU属性值")
        private String valueContent;
    }
}
